package HLA2.entity;

/**
 *
 * @author lorenzo
 */
import HLA2.generatori.Generatore;
import java.util.LinkedList;

public class CentroServizio {

	private Generatore gen;
	public boolean occupato = false;
	public LinkedList<Integer> coda = new LinkedList<Integer>();
	private int count_coda = 0;

	public CentroServizio(Generatore g){
		gen = g;
	}


	public double generaTempo(Double Tempo) {
		return Tempo+gen.next();
	}

    public Generatore getGen()
    {
        return this.gen;
    }

    public int getCountCoda()
    {
        return count_coda;
    }

    public void incrCountCoda()
    {
        count_coda++;
    }

    public void decrCountCoda()
    {
        count_coda--;
    }

}